<%@ page language="java" import="java.util.*" pageEncoding="utf-8"   isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="author" content="IT园" />
<meta name="Keywords" content="IT园" />
<meta name="description" content="IT园" />
<meta name="robots" content="all" />
<title>个人心情</title>
<link href="css/user.css" rel="stylesheet" type="text/css">
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/user.js"></script>
<script src="js/formatStrToDate.js"></script>
</head>
 <%--个人心情 --%> 
  <body>
  	<jsp:include page="/expose/alert.jsp"></jsp:include>
  <jsp:include page="/user/account/accountLeft.jsp"></jsp:include>
	<div style="float: left;width:80%;margin-top: 8px;margin-left: 5px;">
		<div class="per-ss">
				 			<div class="per-content" contenteditable="true" id="publicContent" ></div>
				 				<div  class="per-fabiao" >
					 				<div class="biaoqing">
					 					<a href="javascript:void(0);" >插入表情</a>
					 				</div>
						 			<div>
						 				<a href="javascript:void(0);" class="fabiao" onclick="publicMoment();">发&nbsp;&nbsp;表</a>
						 			</div>
				 				</div>
				 </div>
				 <div class="per-ss-list">
				 		<ul>
				 		<c:forEach items="${moments}"  var="moment">
				 				<li>
				 					<div class="list-date">时间:<fmt:formatDate value="${moment.createDate}"
								pattern="yyyy-MM-dd HH:mm:ss" /></div>
				 					<div class="list-content">${moment.content}</div>
				 					<div class="list-comment">评论(<span style="color: red;">${moment.commentNum }</span>)|赞(<span style="color: red;">${moment.thumbUpNum }</span>)</div>
				 				</li>
				 		</c:forEach>
				 		</ul>
				 </div>
	</div>
</body>
</html>
